package com.ty.day7;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 * Author : txy
 * Create 2023/11/3 14:30
 */
public class Three {
    public static void main(String[] args) {
        int a;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入7个数（1~50）:");
        for (int i = 0; i < 7; i++) {
            a = sc.nextInt();
            if (a < 1 || a > 50) {
                System.out.println(a + "这个数据超过要求！");
                i = i - 1;
                continue;
            }
            for (int j = 0; j < a; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
